<?php
declare (strict_types=1);

namespace app\common\controller;

use think\App;


/**
 * 后台基础类 OldClass
 *
 * @deprecated 该类将在未来的版本中被移除，请使用 use hiduoke\controller\AdminController; 代替。
 */
abstract class AdminController extends BaseController
{
    protected $visit_type = 'admin';

    /**
     * 构造方法
     * @access public
     * @param App $app 应用对象
     */
    public function __construct(App $app)
    {
        parent::__construct($app);
    }

    public function url($controller, $action = 'index', $vars = [])
    {
        return $this->adminUrl($controller, $action, $vars);
    }

    public function getDkSys()
    {
        $dkSys = parent::getDkSys();
        $dkSys['project_type'] = 'framework';
        return $dkSys;
    }
}
